package com.tojabo.sort;

import java.util.Random;

public class MainTest {

	public static void main(String[] args) {

		int size = 100000;
		int a[]= new int[size] ;

		for (int i = 0; i < size; i++) {
			a[i] = (int) (Math.random() * 100000);
		}
		BubbleSort bubbleSort = new BubbleSort();
		//bubbleSort.sort(a);
		//QuickSort quickSort = new QuickSort();
		//quickSort.sort(a);
		//ShellSort shellSort = new ShellSort();
		//shellSort.sort(a);		
		//InsertSort insertSort = new InsertSort();
		//insertSort.sort(a);
		//SelectSort selectSort = new SelectSort();
		//selectSort.sort(a);
		long s1 = System.currentTimeMillis();
		bubbleSort.sort(a);
		long s2 = System.currentTimeMillis();
		
		//printArray(a);
		System.out.println("time:"+(s2-s1));
	}

	public static void printArray(int[] a) {
		for (int j = 0; j < a.length; j++) {
			System.out.println(a[j]);
		}
	}

}
